package com.ruoyi.patrol.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 安全隐患上报对象 pt_safety_hazard_reporting
 *
 * @author zwq
 * @date 2023-02-22
 */
public class PtSafetyHazardReporting extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 学校id
     */
    @Excel(name = "学校id")
    private Long schoolId;

    /**
     * 上报人
     */
    @Excel(name = "上报人")
    private String submitter;

    /**
     * 安全隐患级别(0：重大，1：较大，2：一般)
     */
    @Excel(name = "安全隐患级别(0：重大，1：较大，2：一般)")
    private Long safetyHazardLevel;

    /**
     * 安全隐患原因
     */
    @Excel(name = "安全隐患原因")
    private String safetyHazardReason;

    /**
     * 隐患应对措施
     */
    @Excel(name = "隐患应对措施")
    private String hazardCopeMeasures;

    /**
     * 附件
     */
    @Excel(name = "附件")
    private String fileUrl;


    private Long statetype;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date findtime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date completetime;


    @Excel(name = "附件地址")
    private String filePath;
    /**
     * 备注
     */
    private String remark;

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Long getStatetype() {
        return statetype;
    }

    public void setStatetype(Long statetype) {
        this.statetype = statetype;
    }

    public Date getFindtime() {
        return findtime;
    }

    public void setFindtime(Date findtime) {
        this.findtime = findtime;
    }

    public Date getCompletetime() {
        return completetime;
    }

    public void setCompletetime(Date completetime) {
        this.completetime = completetime;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSchoolId(Long schoolId) {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() {
        return schoolId;
    }

    public void setSubmitter(String submitter) {
        this.submitter = submitter;
    }

    public String getSubmitter() {
        return submitter;
    }

    public void setSafetyHazardLevel(Long safetyHazardLevel) {
        this.safetyHazardLevel = safetyHazardLevel;
    }

    public Long getSafetyHazardLevel() {
        return safetyHazardLevel;
    }

    public void setSafetyHazardReason(String safetyHazardReason) {
        this.safetyHazardReason = safetyHazardReason;
    }

    public String getSafetyHazardReason() {
        return safetyHazardReason;
    }

    public void setHazardCopeMeasures(String hazardCopeMeasures) {
        this.hazardCopeMeasures = hazardCopeMeasures;
    }

    public String getHazardCopeMeasures() {
        return hazardCopeMeasures;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("schoolId", getSchoolId())
                .append("submitter", getSubmitter())
                .append("safetyHazardLevel", getSafetyHazardLevel())
                .append("safetyHazardReason", getSafetyHazardReason())
                .append("hazardCopeMeasures", getHazardCopeMeasures())
                .append("fileUrl", getFileUrl())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
